package org.dcits.controller;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.alibaba.fastjson.JSONObject;

@Controller

public class HomePageController {
	
	@RequestMapping("main")
	public String main() {
		return "MainUI/main";
	}

	@RequestMapping("logout")
	public String logout(HttpSession s) {
		int name = (int)s.getAttribute("userId");
		s.invalidate();
		return "MainUI/main";
	}

	
	
	
}
